﻿using CPPEI.Coolzon.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Service
{
    [ServiceContract]
    public interface IDataService
    {
        /// <summary>
        /// 获取数据的服务接口
        /// </summary>
        /// <param name="userIdentity">用户标识</param>
        /// <param name="datasource">数据源名称</param>
        /// <param name="dataset">数据集名称</param>
        /// <param name="parameters">数据参数列表</param>
        /// <returns>返回的数据结果</returns>
        [OperationContract]
        DataResult GetData(string userIdentity, string datasource, string dataset, List<DataParameter> parameters);
    }
}
